This is how to fix (failed to send post)
First, log in to X using any browser.
Then, tap the three-dot menu in your browser and enable Desktop Site or View as Desktop.
You should now be able to post tweets without any issues.
Note: This is only a temporary workaround for users who urgently need to tweet until X fixes the problem officially.