Canceling an interview is not ideal, but it does not automatically burn the bridge if you handle it professionally. Recruiting teams understand that circumstances change and that candidates sometimes need to step away from a process.
The most important thing is to communicate promptly. Do not disappear or wait until the last minute if you already know you cannot continue. Keep the explanation concise, thank them for the opportunity, and make it clear that you are withdrawing from the current process rather than treating the interview casually.
If you may want to reapply later, you do not need to make promises about timing now. Just leave the interaction in a professional place. Recruiters are much more likely to remember poor communication than the fact that you had a legitimate reason to withdraw.
If the situation changes and you want to recruit again in the future, you can explain the earlier withdrawal briefly and move forward. A useful reference is writing a professional email to a consulting recruiter if you want to go deeper on that part.