If this happens frequently, (as it does with me) get a pill splitter to cut them into smaller more manageable pieces.
This is basically a razor blade embedded in the top part of two hinged pieces with a triangular guide in the bottom part to facilitate cutting.
They’re available for a few bucks in any drugstore.
Just be aware that you shouldn’t do this with time-release or Enteric-coated meds as it defeats that feature. If in doubt ask the Pharmacist.
Another alternative is a pill crusher/grinder which makes tablets into powder which can be taken with applesauce or baby food. Quick and easy, goes down smoothly. Especially good for larger pills.