My college degree is in mechanical engineering, but I've only ever worked in computers as a developer and later a pointy-haired leader of same. If you have a passion for it, I think it's one of the best careers around. If you get into it because it's "good money", it can be just as soul-sucking as anything else that you're just doing for the money.
20 years in, I'm comfortably FI if I wanted to downshift lifestyle at all, but because I still enjoy the work, still have kids in elementary school (so tied down from carefree travel), and can still find use for the salary to pad the stasche, I keep doing it. My plan is to leave when the youngest is off to college.
For your specific question, if you have/had a passion for it, wouldn't you already be doing it? It is a little late to be jumping in from scratch; it's by no means impossible, but there is some age discrimination across the industry (more smoke and complaints than fire from what I've seen and personally experienced, but beware it's a possibility). I am not at all a fan of the bootcamps. Too many bootcamps are in business to extract money from students than to educate them with a solid foundation of computer science principles (which, to be fair to the bootcamps, cannot possibly be learned in 10-12 weeks anyway). Would you be able to find a way to cram your oil and gas engineering education into a season? Presumably not, which is why bootcamp grads aren't looked at anywhere near as in-demand as comp sci graduates. That will eventually go away, provided you continue to supplement your knowledge continuously as the industry evolves.
I love the field. I'd honestly do it for half of what they pay me, maybe even for a third. For me, it's like getting paid to play an open-ended intellectual puzzle game constantly. If you don't have that same passion, I'm not at all saying that you can't become good at it or that you can't build a good career in it, but just that you have to discount my inherent love for it when considering the burnout and downsides question.