The good news

It doesn’t have to be a modal!

Have you considered using the following?

Non-modal dialogs Use them for non-critical interactions that don't block the user (like toasters).

Go inline Present your content inline to be less disruptive.

Expanding elements Use expanding elements such as accordions, toolbars, tooltips, or sliding sidebars (or other modeless elements).

New page Lead the user to a different page to isolate the interaction without losing access to functionality such as navigation.