A recent JavaWorld Community forum message (Stack Overflow after instantiating new object) reminded me that the basics of the StackOverflowError are not always ...
It appears that on 1.20.1 fabric, the light switch block, it can cause a crash when updating the tick pattern. Full error log from the crash: java.lang.Error ...