The fluid capacity specs in your CX-5 owner’s manual are approximate. The actual fluid capacities vary and they can be up to 66% off (on rear differential gear oil capacity: 0.45 / 0.39 quart spec; 0.75 quart actual). Your 2022 CX-5 with a 2.5L NA needs 5.25 quarts to take the oil level to the Max mark. Your previous oil changes using 5 quarts is fine and most DIYers do that way although I always use 5.25 quarts. The oil level will be in between the Min and Max marks with 5 quarts. If you use 5 quarts of oil for oil change this time and the oil level is over the Max mark, there’re only a couple of possibilities. For one you didn’t give enough time to drain the oil completely with cold engine, or the vehicle didn’t park on a level ground during the oil change. The second possibility is you use an aftermarket oil filter which is smaller than OEM oil filter.
Don’t worry about draining some oil for this minor overfill which isn’t because you used too much oil with 5 quarts. Most dealers will always overfill the oil during the oil change anyway.