Welcome. My name is ***** ***** would be glad to assist.
Lets start back at the original outage on the receptacle and fan.
The problem is you have, is not the ground being hot, but the neutral (white wire) is loose on the circuit.
When the white wire becomes loose, it will show as a hot, the ground is just that, a ground that allows you to read voltage.
Pull the receptacle that was originally out and redo the wires on the receptacle, using only the side screws, NO back stabs.
Back stabs will always eventually fail.
After the receptacle, putt the switch out of the box, leave it wired, and look in the rear of the box for the white wires all bundled together and redo that connection.
Do the same for the fan at the ceiling and all its white wires.
Post results and wee can go further to get you going, but if we start at the original problem locations and work forward it is best.
Keep me posted,