dhhdjbd I've had this happen on my previous phone once in a while. Note it was on a samsung so not related to GOS and pixels at all, or perhaps a little as i believe the modem is exynos aswell. Nevertheless this is just a wild guess which not necessarly is the cause or solution to your issue, but on that samsung the solution was to reset bluetooth and WiFi. The cause probably was some issue on the 2.4ghz band.
On GOS i believe u can reset it by navigating to settings > system > reset options > reset bluetooth and WiFI.
I think it's obvious, but note this will reset all related to bluetooth and WiFi.
I want to reiterate this is a wild guess, but u might find it an option to try.