Assemblies referencing a nonexistent file version

In SolidWorks, some assemblies reference "version -/5", this sometimes happens inbetween assembly versions. So between checking out, working on it in SW, and then checking it in, it loses its reference to a certain version of its parts. See screenshot below for an example.

The way you can solve it, is by creating a new assembly version, putting the part as excluded from BOM, and then reversing it, rebuilding the assembly, and then saving it. This solves the issue, and then it looks like this:

As you can see, it now references version 5, as it should. None of the people in our company are excluding parts for fun. I am not sure what could cause this. We are working on SolidWorks 2025 SP4.1.

If anyone has encountered this before, please let me know your solution.

Another example, more extreme example: