Pain during erection lately, but no obvious reason. What could be the cause?

Possibly Peyronie's. Peyronie's disease often presents with a painful erection, typically accompanied by a lump or deformity, an abnormal angulation and sometimes with e.D.