I finally solved the problem, the path to the file causing it is:
C:\Users\XXXXX\AppData\Roaming\Opera Software\Opera Stable\Local Storage
With Opera closed, I deleted this folder (Local Storage) and the problem was solved. If you have a similar problem, first backup this folder and then delete it.