Problem solved. A firmware update fixed a bug that caused a reboot if a file name was over 100 characters long.

Will make sure file names are short in future anyway.