If you can push that thread piece at the top of the float switch up through the hole in the lid and hold it in place with a rubber grommet, that could buffer the vibration and still work as intended, ie, to shut of the skimmer before it overflows.