Why does my shotcut stop working at 41%

You are running out of memory. There is a post almost every day about this with similar answers. You could search and read a little. Here is the most recent

I cannot make every project possible use a small amount of memory, and 32-bit which you are using is too limiting. That is one reason why it is discontinued. With that said, in the newest version 20.11.25 we made some changes to reduce memory usage and also show a dialog when the system is running low on memory. Some ways to reduce memory in your project is to reduce the number of tracks or resolution, not use parallel processing (already turned off in 32-bit), and restarting shotcut before exporting.