Had the problem again, ran another windows memory test and gt nothing. I can export small videos, it just restarts when exporting somewhat large videos. \
EDIT: So I timed my startup after a restart, and it's taking roughly 1 minute longer than usual (23 seconds) to start up. It took 1 minute and 24 seconds. During POST (I think that's what it's called) it seems to hang for a bit on "initiating USB controllers" or something similar.