Effect of Rapid Switching between Charge/Discharge of Lithium Batteries
You don't need to dump excess energy, you can either short circuit or open circuit the output of the solar cells.
In your typical application this should be open circuit, so no current will flow in your circuit. The  arduino will sense the high voltage. You can also try to add a hysteris function to start charging at certain point below open circuit state.