Input lag when creating and removing widget button (Also can break player's input and potential memory leaks)

My original thread with the issue:

Additional old threads:

Potential memory leak code to reproduce: