This network related error code randomly appeared today and looks like it can find nearby connection but it doesn’t wants to connect. It’s fixable?

I’ve tried factory reset, I can login with the Xbox app and complete the initial setup, then the network stop working after the wizard is completed. I haven’t tried ethernet since the router is far from my room but every other device works perfectly with wifi (and also this Xbox util yesterday).