The flux is:
Φ/4α² * 1/A²
Total energy does depend on actual aperture though. Total power is: Φ/4πα * D²
Where D is a diameter of the lens.As a first approximation, the sensor can support a certain flux, but once that regime is exceeded the damage is proportional to the energy, not to the flux. So if we talk about the regime where the sensor is not destroyed, flux is the relevant metric, but a larger lens will likely cause more damage once damage actually occurs.