If I made niyyat of Mustahab fast and after Zuhr I realised that my Wajib qaza is pending. Will that mustahab fast be counted in Wajib?
If not, can I break that mustahab fast.

No. It will not, and you can break the fast, because it is not correct from the beginning