All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
The Malikis agrees that the intention to stop the prayer during it invalidates the prayer. As for the Hanafis, what we understood from their words is that the mere intention alone does not interrupt the prayer. As for the hesitation in interrupting the prayer, we have not seen the sayings of the Malikis about it, but some scholars have stated that it does not invalidate the prayer. And this is what appears to us.
Allah knows best.