Hello Jose. If you experience screen distortion, including vertical lines, when you cast your PC screen to a TV using Microsoft Edge while Chrome casts successfully, then you may be encountering a problem related to a recent alteration in how Edge handles rendering / casting - either Miracast or DLNA. This is not a hardware problem, but rather, a browser compatibility problem. To address the situation, you should update Edge to the latest version, remove hardware acceleration in Settings > System and Performance, and cast certain tabs (instead of share your full screen) using More Tools > Cast Media to Device. You could also try resetting any experimental flags at edge://flags. If the issue continues, you may have to rely on Chrome temporarily or change your casting protocols (ex. Miracast to Chromecast) until a Microsoft fix is available.
Here's the reference: How to Cast Websites to Your TV From Microsoft Edge
Note: I am providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Best regards,