A test:
Get MKVtoolnixGUI
Drag your mp4 file into it and press “Start Multiplexing”
Add the resulting MKV file to your Plex library
play it
Is the faulty behaviour gone?
If it is, the original mp4 file has been incorrectly muxed by a broken software or script.