Likely not the case; the fact that it shows as legal after loading to tabs while still retaining the memory data implies that there's some other data being automatically fixed.
Hold control and right click the box slot, and check the legality there.
@J3Xtrom and @theSLAYER
The caught location for Pokemon varies depending upon whether you were the Raid Host or a Raid Guest. If you are a Guest, it has a generic met in a Den location meanwhile if you are the host it will list the specific area of the Wild Area where the Den is located.