Thank you for your explanation.
When I checked the place where I changed into a straitjacket in the mansion twice in a row, all the Pokemon were overwritten by me and disappeared.