Reproduction steps:
1. Open the attached project “CustomAttributesBug“
2. Press File>Build And Run
3. Observe the errors printed in the running player
Expected results: The player is running without any errors
Actual results: Errors are thrown in the player
Reproducible with: 2022.2.0a15, 2022.2.3f1, 2023.1.0b1, 2023.2.0a3
Not reproducible with: 2022.2.0a14
Couldn't test with: 2020.3.44f1('TreeView' is inaccessible due to its protection level), 2021.3.17f1('TreeView' is inaccessible due to its protection level)
Reproducible on: Windows 11