I have recently had a similar problem with my shower. I found the casue to be when I was turning the heat up on the shower it was causing the water vessel in the shower to have too much steam (pressure) and it casued the vessel to burst open, hence water spraying everywhere and shorting the electrics.
Not saying this is your problem but if you get access to your shower vessel it is easily to see.
This a power shower, not an electric shower !!!
Hot water from cylinder.