Hello, sorry for being inactive I tried to contact the support from Memberships to hear from them if they had a solution for this problem here is their answer :
“I appreciate you clarifying what steps you’ve already tried. I’m glad you were able to find that it’s directly tied to the Memberships plugin though I’m sorry it seems to be with another plugin that’s essential for you. Our plugin is designed to work with the core WooCommerce registration form and it seems that the Ultimate Member’s registration form isn’t working as expected.
My suggestion here would be to contact the plugin author directly and see if they’d be interested in adding compatibility with Memberships. You should be able to reach them using this link: https://ultimatemember.com/support/
We make all reasonable efforts to ensure our plugins are compatible with those from WooCommerce.com. I’m afraid that our support policy doesn’t cover conflicts with third-party plugins like Ultimate Member. That being said, I believe that their support may be able to fix the form with additional code. Given the thousands of different WordPress and WooCommerce plugins and developers with various coding standards, I’m afraid that we can’t guarantee compatibility with all other plugins.
I know that this is not ideal, and I’m so sorry that I don’t have better news for you here!
Would you please let me know if Ultimate Member is able to help out with the issue?”