Breaks in relationship

My bf of 4 years and I thought it would be okay to take a break because of the state of our mental heal recently. Lately I haven’t been feeling like myself/ depressed and in October he lost his mom. With a mix of those we’ve been getting angry at each other easily and just has not been a healthy situation for each other to heal. We want to be with each other and plan to get back after some time apart. But I’m stuck in the middle of a break is just ending the relationship and won’t solve anything or a break will help us. What is your opinion