(IN-5287) Error "Destroying a GameObject inside a Prefab instance is not allowed" shown when destroy

Hi. I found that Unity shows error like below when I destroy instantiated gameobject:

This only occurred in Unity 2022.2.0a13. Unity 2022.1.x, 2021.3.x does not have this issue.

Reported as IN-5287. (Ticket number formatting is changed?)

2022.2.0a18 still has the problem.