Reproduction steps:
1. Open the attached “BugRepro” project
2. Select the “Assets/Prefabs/UIPrefab.prefab” prefab
3. In the Inspector window inspect the prefab and note that RectTransform's Pivot is 0, 0 and Scale is 0, 0, 0
4. From the menu go to Replicate Bug > Resave Prefab to execute the script
5. Observe the Inspector window
Expected result: RectTransform's Pivot and Scale values do not change
Actual result: RectTransform's Pivot is (0.5, 0.5) and the Scale is set to (1,1,1)
Reproducible with: 2021.3.40f1, 2022.3.40f1, 6000.0.1f1, 6000.0.13f1
Not reproducible with: 6000.0.0f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested