Not so difficult, before I had solar cells I also had that problem, not far from me is a car repair shop and has a welding machine, this causes the tension to vary greatly.
To avoid this I bought a automatic voltage regulator, this keeps the voltage constant.
With the solar cells it is not needed anymore, and is now for sale.