Firefox Search function not working

On my Windows PC I use Firefox with Duckduckgo as my default search engine. While I can open websites, when I search anything (even something innocuous like 'water') it's showing PR_CONNECT_RESET_ERROR. I have tried 1. disabling and deleting the add ons. 2. Deleting and redownloading Firefox 3. Scanning with Malwarebytes

I don't use any VPN. It is not a network issue either because Edge is working perfectly fine.

Please help me fix it because I don't want to use Chrome or god forbid Edge.