This is my original answer, but please also see the update below where I changed my advice based on some clarifications in the comments.
I think you should try to finish the PhD. You are so close, and really it's the major reward you get for the years of toil on your projects. If you drop out now, you will not have a tangible record to show for all your troubles. And a PhD is a nice prize that shows you have valuable experience.
There is not much you can do about whether or not these papers get published at this point. Given your timeline, it is what it is. Don't assume the rules your committee gave you are set in stone. No one wants to see you fail, least of all your advisor. Write up the work you have done, and be honest about the submission status of the various papers. I think it is more likely than not that this will be fine, in the end. As pointed out by @user347489 in the comments, a reasonable committee may simply look past a publication requirement, because you are planning to leave academia and enter a field where your publication record does not really matter; make sure your committee is aware of your plans. But in the event that it is a major sticking point, let them decide this, rather than you deciding it for them. Get your committee and your advisor to tell you what steps you need to take to complete the PhD; they are the ones who are responsible for this decision. For now, assume everything will work out, and concentrate on your part of this: getting your work written up into a thesis.
There may be some part of you that is angry that you have come so far, and are facing obstacles so close to the finish line. In my opinion, this feeling would be very normal and could actually be put to good use -- try to experience some of that anger and use it to motivate you to do the work, and talk to the necessary people, so you can finish with the degree. Don't give up on yourself now.
Job searches take a long time. You need to balance this against finishing your degree. Try to plan your time realistically, and don't expect more from yourself than any human can deliver. When you do get time to focus on your search, read the job descriptions for ads in the field or fields you want to get a job in. Start by making a resume that demonstrates how your skills match what the companies are looking for in a way they can relate to, by using words in their job descriptions. Try to talk to people who do those jobs -- perhaps there are people in your PhD program who have gone on to some of these jobs you can talk to, or people in your broader network, or see if there are job fairs for your field in your local area.
Please keep in mind that impostor syndrome is incredibly common in academia, and while I don't know you, I think it quite unlikely that you got into a PhD program and have made it through almost to the very end by being a "failure," and much more likely that you are a talented and hard-working individual who is burnt out by the PhD process (and, I'm not sure if you've heard, but there's a pandemic that has been going recently). On the topic of burning out... make sure you take time to practice some self-care. Go on walks or runs or bike rides. Make sure you eat well and get enough sleep. If you can, take a vacation.
Finally, I strongly encourage you to seek out a mental health professional, if you have not already. They can help you talk through many of these issues much more effectively than strangers on an internet forum.
Update
Based on discussion with @antev in the comments, it appears I misunderstood the situation. I was assuming that your PhD could be finished without about 2 more months of work, and that the requirement for a publication could be waived. Apparently, this is not true. Really, the situation is that you need to wait an indefinite amount of time to hear back from the referees. If the paper isn't accepted, then you have to do more work to get a paper published, in order to be able to defend.
First, I just want to express I find it completely ridiculous that an advisor would commit to a student for four years and then pull the rug out from under them at the end, by refusing to support them while they finish the degree, either by extending financial support while wrapping up the last stages of this paper, or by loosening the requirement to have a paper (or "going to bat" for you by arguing your case if this is an institute or department policy).
With that off of my chest, I think you basically have 3 or maybe 4 options.
Option 1 Find a job that you like that does not require a PhD. If you find one, then no need to finish the PhD.
Option 2 Find a job you like that does require a PhD, but is willing to hire you while you finish the last steps of your degree. I have heard of situations like this before. But, I have only heard of it when the candidate was "ABD", meaning all requirements were met except for the dissertation. In your case, the situation is murkier because you have a hard requirement for publishing a paper, and you can't guarantee if or when it will be published. So I don't know how likely it is you will be able to find a job like this -- not to say you shouldn't try.
Option 3 Find a part-time job to pay the bills while you finish your PhD. Once you have your PhD, or at least have the published paper part of your degree finished, I think it will be easier to find jobs that require a PhD.
Option 4 As suggested in the comments, apply for a leave of absence. I don't know much about how this would work -- you would need to look into the details at your location.
Obviously there are some major pros and cons to each option, that will come down to personal factors. Option 1 is probably the "cleanest" option, but you have to be sure you really like the job and aren't selling yourself short. If you want a job requiring a PhD, to me option 2 seems better if you can find one, and option 3 seems like a last-resort back up plan. Depending on your institution's policies, Option 4 (a leave of absence) could also be worth considering, but I don't have any idea what that would look like in practice.
I also am going to reverse what I said initially. With this set of options, I think it makes more sense to focus on your job search now, and try to nail down what jobs you want and what options you have.