pyDrone doesn't stop gaining altitude

Hello everyone! I have a problem with pydrone. After takeoff on default factory script, drone starts gaining altitude and doesn’t stop. IMU and barometer (covered with a piece of foam) readings are ok. What’s wrong with the drone? Is it vibrations causing motors winding up? If so, is it possible to adjust attitude or altitude pid gains?