I work in Intellij IDEA, but my computer freezes so I turn off my computer. (long click power button) When I turned on computer and start IntelliJ IDEA I had this error:
I've found on several occasions that "Content is not allowed in prolog" presented when I had an XML file with leading spaces in front of the xml or doc type declarations at the start of the file.
I had the same symptoms, and was able to solve by closing the project and going through each of the XML files in the project ".idea" folder. In my case, I found that somehow a few hundred lines of leading whitespace had been added to the "workspace.xml" file. I removed the leading whitespace from the file, restarted IDEa and everything worked again.