While I am tempted to write a long essay, I will call out 4 points which I think are crucial:
1. Talk to someone you trust who can be a bit more objective (and a good listener). You will find the answers yourself.
2. You are going to die someday. Think about what you want to leave behind.
3. Assuming you have some money saved and where you are going to live, your drop in quality of life might not be as high as you anticipate.
4. It is easier if you are not married. Getting back into tech industry is both easier and harder than you would expect.
My go-to books for these kind of questions have been [1] Rubaiyat of Omar Khayyam (https://www.gutenberg.org/files/22535/22535-h/22535-h.htm) [2] Stray Birds by Tagore (https://www.gutenberg.org/ebooks/6524)
Please dm me if you just want to talk about it and best of luck.