Baby is difficult to put to sleep/nap

AB

My baby is almost 5 months and for the past 3-4 weeks she has been difficult to put to sleep or nap. She would arch her body and kick her legs. After about 10 mins of rocking her she settles down and falls asleep but would wake up when I set her down in her crib. Does anyone know what’s going on here ? It’s so frustrating 😫