https://forum.unity.com/threads/argumentnullexception-value-cannot-be-null-parameter-name-_unity_self.1431901/
https://forum.unity.com/threads/system-argumentnullexception-value-cannot-be-null-parameter-name-_unity_self.1447684/
The code is irrelevant actually in this error because it's Unity bound. Please read the above links. It seems this is a Unity bug regarding UIElements. The system doesn't seem production ready.
Unity Forum
I am making 2d game using newest unity, 2022.2.17f1
Now I met this error and this does not indicate any of my code's location, so can't know what is...