Did your Slim come with a pre-paired drive?
What was the factory firmware version on your PS5, and has it ever been updated in the past?
What exactly do you mean by "reset to factory settings"?
Once the drive pairing is gone, it's gone, it's pretty much impossible to restore it without updating...