Servo example code doesn't compile on RP2040

I actually tried your library. It works when I control it offline. The servo motor does whatever I tell it to do. However, when I try to make it an IoT, namely, I use a bool variable to instruct the motor to turn certain angle through the cloud, the motor does not respond for most of the times. There are a few times when I control it successfully. When I try Servo library on the nano 33 board, and basically same IoT sketch, it works all the time. Do you have any ideas what is the reason behind it?