That's why I have a bumper case on my Edge 520. It cost around $5 at [REDACTED] and added a splash of color to my Garmin (also helps differentiate it from the other Gamin units out there). This thing has protected the screen and the case quite well over the years.
Similar cases are available for the 530, 830, and 1030 series. A friend of mine who is a heavy-duty MTB rider around here (and trust me: you're more likely to run into a tree in the east than on western trails) and uses an Edge 1030 or 830 on every ride. He's yet to break one in a crash, and his crashes are sometimes quite spectacular. He has bumper cases on each of these units and used K-Edge mounts.
FWIW: I use my Edge 520 on my road and gravel bikes using K-Edge mounts. I can also record rides using the Garmin fēnix 5 watch which is paired with my peripherals (cadence sensor, speed sensor, power meter), tho it's not as easy to view while riding, especially on rough surfaces.