VSCode Live Server Extension Not Working on a Single Page

I am using the Live Server extension by Ritwick Dey, and it is working fine, except for one webpage of my website (the most important one). What happens is that the page loops for several seconds and then loads, or sometimes I also get a Server Error 500. What could cause this issue? Everything on the page works as expected.

Upon inspecting the page, the only error I see is:

Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

However, I don’t know how to fix this or what it means.

Here’s a GIF that shows the issue: GIF Link

I tried resolving some JavaScript errors on the page, but it didn’t fix the problem.