It’s a bug and I have the exact same problem. It’s happened to me a few times and nobody on the forums have bothered to respond to either of my posts about it.
The issue started when I updated to 5.6
My project predates 5.1 and has worked through every update until now.