The error started coming after updating the sdk version from ncs v.2.9 to ncs v3.1
[00:06:58.439,514] <inf> _https: Log:Sock before -1
[00:06:58.484,649] <inf>_https: Log: Sock after 11
[00:06:58.603,942] <err> _https: Log: Connecting to server failed, err: 22, Invalid argument
[00:06:58.605,407] <err> _https: Log: Connection to server failed: -22
[00:06:58.605,468] <inf> _wifi: Reconnecting Wi-Fi
prj.conf