I have a lot of 404 errors in my Google search console and have been researching this a bit. I understand they are generally not going to impact anything, but I did read that if they are internally linked from your website, that could be a problem for search rankings. My issue is that a lot of these 404 errors are coming from pages I deleted years ago. When I go to see where they are linked from, the answer is the non-www version of the page itself, my homepage (which does not have such a link), and other outdated pages that no longer exist.
This includes: a page that hasn't existed for years; my homepage, which does not have such a link; another page that hasn't existed for years; a page with the same address, but without "www". There are also a ton of pages like this listed in my crawl errors.
I just want to make sure this doesn't end up counting as an internal 404 error that could impact my search rankings? Is it okay to leave it alone?