It is atypical for diastasis recti to cause pain. It is possible that you could have an undiagnosed ventral or umbilical hernia. Alternatively, you could have some other intra-abdominal cause of pain. I would recommend evaluation by a General Surgeon or Plastic Surgeon to evaluate your symptoms. Best Wishes.
Diastasis Recti is the separation of the vertical abdominal muscles, called the Rectus Abdominis muscles. Pregnancy causes stretching of the abdominal muscles. Sometimes after delivery, the muscles do join back up in the center, leaving a vertical thin area of separation. This can sometimes be so thin that it allows your "insides" to bulge outward, especially when sitting up, or straining. This pressure can cause pain. Diastasis is different than a hernia, which is basically a hole through which your "insides" can actually push through the hole and get caught. This can sometimes become an emergency medical problem. You should see a doc just to be sure of which you have.