I don't have enough reputation to comment. As another person said, I also resolved this problem on Thonny/Pico by removing "freq = 40000' from the I2C object statement.
Reasons:
Blacklisted phrase (1): to comment
RegEx Blacklisted phrase (1.5): I don't have enough reputation to comment