Garmin Edge 520 seems practically dead - out of options

My Garmin Edge 520 started behaving very strangely. If I plug it in, it seems to charge. If I unplug it or even move it slightly, the screen gives a thin black line and then goes off completely. I cannot get any response from it when it is not plugged in, and when it is plugged in, it's very touchy and usually just goes off. I have tried all the various ways to reset, even a hard reset, and there is just no response from the unit.

Is there any hope at this point? I will try anything.

I will say that the last ride I did with it was fairly wet. Lots of rain.

Gary