Wrong message after form submission

On my landing page, when a user submits the form, instead of the thank you message the page pops up an error message saying there was an issue and the form could not be submitted.

AND, the form is submitted. But the user would be thinking the page doesn’t work.

I tried to configure the confirmation steps to show a thank you message. But no luck,

How to fix this?