Fwiw, I also had something of a "why" moment in my life - and after a lot of soul-searching, it was establishing a map (flowchart) of values that helped me feel oriented. It guides my "why" for a lot of things, including why I choose to still be a live.
If you're life has become meaningless, perhaps the solution is to give it your own meaning.