We have the vector potential
Energy in Field for a Given Vector Potential
First find the fields.
Note that, for an EM wave, the vector potential is transverse to the wave vector.
The energy density in the field is
Averaging the sine square gives one half, so, the energy in a volume