This has been covered before......
Too many 12v devices to one circuit (including the water pump and lights) which causes the flicker.
Solutions are mainly to separate the 12v circuit to your water pump from everything else. Run a power wire directly from your fuse panel the pump.
This may take some investigating about how to do that. Solutions include relays, direct connections,
this device , etc... Maybe check on your specific RV's forum web site to see if someone has already done it.