I bet there’s a missing or poor neutral. If your neutral wiring has problems, then you are operating at anywhere between 0 and 240 VAC depending on what else is going on, e.g. whether the AC is running or the lights are on. Additionally, if you do have any sort of ground and that ground is (improperly) tied to neutral in more than one place, then you may have substantial current flow through “ground”, i.e. the actual Earth, your pipes, your steel building structure, your body, etc.
Get a true RMS voltmeter, (safely!) connect between hot and neutral, and switch lights and AC on and off. Repeat with the meter between neutral and ground.
And consider replacing the circuit breaker on the circuit you’re using with a GFCI breaker. Several common screwups will cause it to trip.