There is a very high quality free open source project called Open Broadcaster Software (OBS).
In the Classic version there is a plugin which stops the recording and saves it and then starts recording again. The plugin is called RecordSplitter and is available at that link currently.
You configure how long you want it to record before splitting. There is this very minor drawback though: "You will lose ~3 seconds of footage while the recording stops and restarts."
I suspect that the space you have on your drive would be your only limiting factor for how many hours you could continue recording.
You may also find that the new OBS Studio version will record much longer than your other attempted software. I have found OBS code to be so good that it may be writing to disk after a certain file size anyway. It very well may continue to successfully record that single file until you run out of space on the disk, but I don't know that from personal experience.