This is a common theme in these SBC threads, but I've also had a pretty good experience with microSD cards in the Pi—one time I had corruption after unplugging the Pi.
Two things that are immensely helpful if you want a stable experience with the Pi:
1. A good power supply.
2. A good microSD card.
Most cheap power supplies (like those you get free with a phone) don't supply 2A or more consistently, which the newer Pis need to run stable.
Two things that are immensely helpful if you want a stable experience with the Pi:
Most cheap power supplies (like those you get free with a phone) don't supply 2A or more consistently, which the newer Pis need to run stable.And as far as microSD cards go, [I wrote an article on that last week](https://www.jeffgeerling.com/blog/2018/raspberry-pi-microsd-... there's a huge gulf between the best and worst cards, even from name-brand manufacturers.