Hey C S Sultan, Thanks for your quick response.
I’m using Elementor Pro. The critical error only occurs when editing the page. Fortunately, the page can be used from the front end with no problem.
I did some more testing and it appears that all of the “thank you” pages are doing this now. Even newly made funnels that are generated from the official templates are having this issue.