I've never had issues with medications when travelling. We have a long standing relationship with our Dr and she has always prescribed an extra month or 2’s med etc if we are travelling. Sometimes the pharmacist is not too keen to fill it but you just need to say “I’m travelling” and then its no issues.
Because we’re often remote, we also get some antibiotics and other prescription meds (for just in case), once again it has not been an issue because of the good relationship with the Dr.
I guess the moral is to develop a good relationship with a Dr who you trust, if you don’t like the Dr, then try and look for another (I know this can be difficult depending on where you live …)