Feeling pressure at this crossroad - could use some advice

Only have 2.5 years of federal experience. This has been a stressful and uncertain time for a lot of us. Due to my lack of tenure, there is a lot of stress, fear and anxiety of not surviving at my job due to a RIF. Thinking to take the resignation and come back to serving the public because that is a passion of mine. Can anyone provide any advice for a newer/less experienced fed employee like me one what the best options are (especially since we will likely be the first to be separated) ? And any thoughts/advice on what is legally allowed for a RIF?