tel beth-shemesh is only about 7 acres on a low hill the population wasn't even close to 50,000 that number is a scribal error the actual number who died in the 1 samuel 6:19 account was 70
Actually the majority of Hebrew manuscripts say 5070 at 1 Sam (as well as the LXX). It's probably the 70 that is the scribal error.
Either way, the lesson you might learn is that the author thought of his God as prone to anger and violence or wrote such stories with the hope of evoking fear. Kinda like those churches that emphasize hellfire passages.
The second lesson you might learn is that the Bible is full of scribal error and redaction.
A third lesson is that the town's name is House of the Sun Goddess Shemesh which again suggests the story has a 5th century Yahwist whitewash.