Hi, sorry. I forgot to reply on this topic.
It’s already resolved, but it’s not because of custom thank you page settings. It was caused by an advanced setting on the Yoast SEO plugin. I just turned off the ‘remove unrecognized URL parameter’ option and it’s fine now.