Thanks, mwillems! I have the library on the Micro SD-card that also has the OS. I believe the card reader on the Pi 4 is USB 3.0, and I have a quite fast Sandisk card that I used to have in a DJI Phantom Pro drone for 4K video. But I will try to do that pregeneration of thumnails, I can let it work over night. And I am guessing that the restart of MC (which I will probably implement as a full restart of the Pi with Node-RED) fixes the same thing that I wrote about, the "lockup" after some hours.
I have a CPU graph in the menu line, and I don't think I've ever seen it go above 40 % on the Pi 4. On the Pi 3B I think it went all the way up, if I'm not remembering that incorrectly.
Edit: Come to think about it, I think I have all the covers in a separate directory on the hard drive. Maybe that has something to do with it? I'll try to move that to the Micro SD card. It's a 64 gig card, so I can create a separate partition for that.