welcome to the forum,
i believe that megacmd supports modtime, so might try running megacmd in webdav mode and create a rclone webdav remote.
Populate mtime/modtime/modified time for Mega · Issue #4731 · rclone/rclone · GitHub
Mega does not preserve timestamp