Nothing will happen, it is fine to use higher voltage capacitors than the previous capacitors. The voltage rating indicates the max voltage. If the capacitor has a higher max rated voltage, then that's fine, because the product will have an operating voltage lower than 400V. [pdf]
[FAQS about Can adding capacitors to an inverter increase voltage ]
Submit your inquiry about solar energy products, solar inverters, solar cells, photovoltaic modules, industrial and commercial energy storage systems, home energy storage systems, and solar power technologies. Our solar and energy storage solution experts will reply within 24 hours.