Why do I have problems opening documents when an upgrade is available?

When an upgrade is available I get a “document corrupted” message and the dialogue to try and repair. The error is on all document types. I have learnt that this idiosyncratic behaviour means that an upgrade is available and when installed all is well again. It is quite alarming to see this message and wonder what causes it. I get the message if I am opening from the “start up” window with links to recent docs or directly from the file system.
Thanks

System and LibreOffice version please.