As long as she's safe, youve already done the basics for her (fed her, burped her, changed her, made sure nothing is visibly causing her pain), and she's not going to get hurt you can set her down (in her crib or another place) and walk away for a minute to calm down if need be. It could be something like she's fighting sleep and she'll be upset until she tires herself out more.