Welcome to the MongoDB Community Forums @Heiaha !
Can you check your MongoDB log file for more context leading up to the shutdown message (and share the relevant log lines)?
Also, which Raspberry Pi 4 model do you have: 2, 4, or 8 GB RAM?
Thanks,
Stennie