WIFI hasn't been working properly on my PC since an update 3 weeks ago

For the last 2 or 3 weeks, a strange bug has been happening on my PC, specifically my WIFI. during the day, I can use my PC without any issues but after a while my WIFI would start acting weird out of of nowhere.

When I tried journalctl -xeu NetworkManager, it shows this

Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8027] device (wlp3s0): ip:dhcp4: restarting
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8183] dhcp4 (wlp3s0): canceled DHCP transaction
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8187] dhcp4 (wlp3s0): state changed no lease
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8188] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8189] device (wlp3s0): ip:dhcp6: restarting
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8190] dhcp6 (wlp3s0): canceled DHCP transaction
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8190] dhcp6 (wlp3s0): state changed no lease
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8190] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 07 17:59:27 LINMANKDE NetworkManager[455]: <info>  [1678208367.8191] device (p2p-dev-wlp3s0): supplicant management interface state: 4way_handshake -> completed
Mar 07 17:59:28 LINMANKDE NetworkManager[455]: <info>  [1678208368.4447] device (wlp3s0): supplicant interface state: completed -> disconnected
Mar 07 17:59:28 LINMANKDE NetworkManager[455]: <info>  [1678208368.4447] device (p2p-dev-wlp3s0): supplicant management interface state: completed -> disconnected
Mar 07 17:59:28 LINMANKDE NetworkManager[455]: <info>  [1678208368.5365] device (wlp3s0): supplicant interface state: disconnected -> scanning
Mar 07 17:59:28 LINMANKDE NetworkManager[455]: <info>  [1678208368.5365] device (p2p-dev-wlp3s0): supplicant management interface state: disconnected -> scanning
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.7684] device (wlp3s0): supplicant interface state: scanning -> authenticating
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.7685] device (p2p-dev-wlp3s0): supplicant management interface state: scanning -> authenticating
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.7733] device (wlp3s0): supplicant interface state: authenticating -> associating
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.7733] device (p2p-dev-wlp3s0): supplicant management interface state: authenticating -> associating
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.7879] device (wlp3s0): supplicant interface state: associating -> 4way_handshake
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.7880] device (p2p-dev-wlp3s0): supplicant management interface state: associating -> 4way_handshake
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8251] device (wlp3s0): supplicant interface state: 4way_handshake -> completed
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8265] device (wlp3s0): ip:dhcp4: restarting
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8382] dhcp4 (wlp3s0): canceled DHCP transaction
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8383] dhcp4 (wlp3s0): state changed no lease
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8384] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8385] device (wlp3s0): ip:dhcp6: restarting
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8386] dhcp6 (wlp3s0): canceled DHCP transaction
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8386] dhcp6 (wlp3s0): state changed no lease
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8386] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Mar 07 17:59:31 LINMANKDE NetworkManager[455]: <info>  [1678208371.8388] device (p2p-dev-wlp3s0): supplicant management interface state: 4way_handshake -> completed
Mar 07 17:59:32 LINMANKDE NetworkManager[455]: <info>  [1678208372.4511] device (wlp3s0): supplicant interface state: completed -> disconnected
Mar 07 17:59:32 LINMANKDE NetworkManager[455]: <info>  [1678208372.4512] device (p2p-dev-wlp3s0): supplicant management interface state: completed -> disconnected
Mar 07 17:59:32 LINMANKDE NetworkManager[455]: <info>  [1678208372.5270] device (wlp3s0): supplicant interface state: disconnected -> scanning

When I ping a random website, it shows this:

64 bytes from mrs09s08-in-f14.1e100.net (216.58.198.78): icmp_seq=72 ttl=116 time=2274 ms
64 bytes from dub08s02-in-f14.1e100.net (216.58.198.78): icmp_seq=73 ttl=116 time=1269 ms
64 bytes from mrs09s08-in-f14.1e100.net (216.58.198.78): icmp_seq=74 ttl=116 time=393 ms
From LINMANKDE (172.17.0.14) icmp_seq=76 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=77 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=78 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=79 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=83 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=84 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=87 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=88 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=89 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=90 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=91 Destination Host Unreachable
64 bytes from dub08s02-in-f14.1e100.net (216.58.198.78): icmp_seq=92 ttl=116 time=2395 ms
64 bytes from dub08s02-in-f14.1e100.net (216.58.198.78): icmp_seq=93 ttl=116 time=1383 ms
64 bytes from mrs09s08-in-f14.1e100.net (216.58.198.78): icmp_seq=94 ttl=116 time=370 ms
From LINMANKDE (172.17.0.14) icmp_seq=96 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=97 Destination Host Unreachable
From LINMANKDE (172.17.0.14) icmp_seq=98 Destination Host Unreachable

I’ve been having this issue on my PC only, I checked on work pc and my phone and they both work fine. The only thing that has been fixing this issue is rebooting the PC but I don’t want to keep doing this every single time. Even restarting the NetworkManager service doesn’t fix it.

Here’s some info on my PC

Network:
  Device-1: Intel Ethernet I218-V driver: e1000e
  IF: enp0s25 state: down mac: <filter>
  Device-2: Intel Wireless 7260 driver: iwlwifi
  IF: wlp3s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>

Looks like DNS Problem. Some DNS Servers reject DNS-Requests when it requests too many times. That could be possibly the issue. Adding a local dns cache would reduce the requests.

Maybe this: