If recording hasn't managed to finish ,the MP4 file will be incomplete and that is why it is unplayable.
There are some tools that can be used to fix incomplete MP4 files but we've not tested any of them to check have effective they are. This article has some suggestions for ones you could try - https://recoverit.wondershare.com/repair-video-file/free-download-video-repair-software.html