Throwing in the towel

It sounds like you are burned out and need a new challenge or growth.
A) Switch industries or switch from corporate to consultancy. But if you switch to consultancy you may be bored in 5 years again.
B) Look into advancing your career/position at your current company. The natural progression is to move on to management, director level, etc. If it’s not possible or it’s not going to happen anytime soon then look for that position at a different company but same industry.

Lastly write down the pros and cons of your current job. Then write the (assumed) pros and cons of your ideal job. After 10 years you should be able to pin point what is lacking from your professional life now and hopefully design a path for your ideal career path for the next 5-10-20 years. After you have made a plan then make a smooth transition without burning any bridges. It’s hard to give a good recommendation of somebody that just walks away.

Good luck.