Only 40 minute naps

Is this normal? My six month old randomly went from taking 1-2 hour naps to only napping for 40 mins at the most. It's driving me crazy. Nothing has changed idk why she's randomly shortened her naps. And she's getting up at night more now too.