POST request to influxDB API fails 1/20 times

I am trying to post some data points to influxDB and I succeed on most POST requests but some times I get a fail message:

x509-crt-bundle:PK verify failed with error FFFFBD70
x509-crt-bundle:Failed to verify certificate

I am POSTing from a pi pico w like this:

        "Authorization": f"Token {INFLUXDB_API_TOKEN}",
        "Content-Type": "text/plain; charset=utf-8",
        "Accept": "application/json",

Out of 20 POSTs, about 4 output this fail message but it seems that even so, they are going through, I see the data in the explorer. But one in 20 POSTs fails without any error messages. Unfortunately, I am unable to get a response object from the pico’s POST request, trying to read a response object takes forever. What can I do to troubleshoot this?