For the first pic. I would get a couple of lengths of 2x1 batten. Cut them an inch either side of the length of the hole and fix them in position with gyproc screws. Then cut out a bit of plasterboard the size of the hole and fix to the battens.
Second pic. Loosen the socket, isolate the...