Today I got the error:
File mode specification error: (error Invalid duration format: "energy")
This has shown up ten or twenty times over the last year or two.
I couldn’t figure out what caused it.
When I killed all of my buffers and restarted Emacs then the error went away.