One solution is to add a very large inductor in series to break the feedback loop. Inductor has zero resistance at DC but has large resistance at any frequencies of interest. Then you could inject your AC signal where you inserted the inductor to calculate the loop gain and phase.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.