Any chance we need to use the Lorentz gauge, to transform the spatial derivative of A into the negative time derivative?
Could you solve this problem with electromagnetic field tensor?
@eriknelson2559