Upgraded SDK, virtual mic not working now (IZoomSDKVirtualAudioMicEvent::onMicUninitialized is called unexpectedly)

I have app that implements virtual mic on using C++ Zoom Windows SDK v5.16.2.22857

The app works perfectly - that is, audio is sent to the meeting using virtual mic successfully.

However when I upgrade the SDK version, onMicUninitialized callback is getting called, and as a result audio is not sent over the virtual mic:

IZoomSDKVirtualAudioMicEvent::onMicUninitialized

The problem is present in SDK versions starting at v5.16.5.24346
I have also tried to use the latest v6.1.1.41755 and multiple versions in between.
But all of the SDK versions after v5.16.2.22857 are causing the problem.

How can I fix it?

The cause I could not find. It was something about the onMicStartSend not being triggered. So I mute then unmute and did that twice, and it works.