Steps to reproduce:
1. Open the user’s attached “GameobjectsPoolBug“ project
2. Create a “Pool” GameObject (Bug → CreatePool)
3. Select it in the Hierarchy and delete
4. Observe the Console
Expected result: The pool is deleted without an error
Actual result: Error “Failed to create Object Undo, because the action is too large” is thrown
Reproducible with: 2021.1.0a1, 2021.3.13f1, 2022.1.22f1, 2022.2.0b14, 2023.1.0a17
Not reproducible with: 2020.2.0a21, 2020.3.40f1
Reproduced on: macOS Monterey 12.5.1 (Intel)
Note: Not reproducible when deleting the pool via Bug → DeletePool