It’s a bit late here so my apologies if there’s a lack of clarity in my reply.
There are, to me, two points here. The first is to determine the purpose of the action or practice for the person doing it. The second is risk-relative-to-safety in current day yoga practice.
For the first point I prefer to have the student (you in this case) outline the intention or “why” the particular thing is being done. So I’ll pose that question here:
What is the purpose (for you) in the practice of the aforementioned bandhas? If it is only being done because this practice mandates it or this teacher says so … then it begs a larger question. Without having a purpose for the doing it is nearly impossible to weigh whether it should be done in the face of that which is delivers.
For example, if the purpose in doing uddiyana bandha (for you) is to cultivate the pillar of light, spread that light from the central channel into all of the cells of your body, AND this is actually happening from the practice, then it may be completely appropriate to continue.
However my preference, for the practice, is to err on the side of caution. And this segues into my second point. There are many things advocated, taught, and done today that appear to have little int he way of sound teaching, preparation, or context to them. That is NOT to say bandhas are one of them but it is not to say that they are not.
From what I have seen, bandhas and mudras are over-practiced and under-instructed. They are often carelessly shared before it is time, in ways that overlook safety, to those not fully prepared. If this is in doubt one only need look through the myriad of yoga videos available on the Internet.
So in this case I would suggest abstaining from the practice of bandhas (and by that I refer to the classical definition of each) considering the issue with endometriosis and its ramifications. As with all things, see what happens (when erring on the side of caution) and go from that point.
And as I’ve said many times before, these sorts of questions should be posed to one’s teacher or one’s teacher’s teacher. When such a thing is not possible or pursued, it prevents an answer within the lineage of the particular practice and inhibits an appropriate relationship between student and teacher.
Hope this is helpful for you.
If it requires clarification on my part please feel free to ask, either in the thread or through PM.
gordon