This isn’t really an answer, but I saved first just in case, and I move around the roof the the left of where the ladder leads you, if you scare it off, restart the game, I’d use a ghost type move such as Phantom force, Shadow sneak, etc. I hope this was enough, good luck