It seems like your baby could be going through a sleep regression! First regression happens around 4 months (mine had it at 5 months) which lasts a couple weeks. It will happen again at different stages of development. There isn’t really anything you can do during a regression but continue same routine as what worked for you! There is an end to it x
My second child done this for months literally bang on 30 minutes and that was her awake I felt like it was taking me more time to get her fed and changed etc to put her down than it was for the actual sleeping part! But since we dropped to two naps she will sleep for 1.5-2 hours each nap!x
Mine is the same although does take longer contact naps. He seems happy enough with short naps though so I don’t stress x
I see your LO is almost 5 months? My LO was like this - he only JUST started napping for more than 40 minutes and he’s almost 14 months. It can take a long time for some babies sleep to consolidate and it cab be developmentally normal for babies your LO age to only take short naps doesn’t mean there’s anything wrong. I would focus on being consistent with routine. Aim for the lower range of wake window since she sleeps less to avoid being overtired (maybe 2.5hrs). Have a good naptime routine and just stick to it! And then a consistent bedtime and routine for that as well. It will get better! x