I don’t think they have anything to do with each other except an increase in pain for some.
When I masterbated in the past and because my muscles would be flexing it was really painful but it doesn't increase it
Thank you @A MyEndometriosisTeam Member and @Purpelette2020 for your response. Most of the times it happens that my heartbeat increases the next day after I masturbate, that too more than normal levels. No one is able to figure out the problem.