Voltage of 5V pin when only connected to battery

HIGH on XIAO’s I/O is 3.3V. Is there a problem with the interface when 4V is supplied to the device?
What is the link to the device you are using? I think I can check the specs.

The battery pad is at 4.2V when charging.