Maybe you should limit the number of old versions too?
Yesterday I had an issue after I’ve edited many times a big note (> 1000 KB encrypted). Joplin ended up freezing 5 seconds after the start. Not sure if it’s related to the history. Unfortunately I had no time to look closer at it, just wiped out the directory and resynced.