Thank you so much for the reply.
So the car runs great warm and shifts beautifully. There is a Volvo specialist not far from my house who I had look at the car after I bought it to go through the whole thing and make up a list of things that need to be done to ensure that it will run for a long time. So we started out with replacing the bushings on the transmission as well as the mount and flushing the fluid.
I brought it back today after this problem persisted. On the first day I brought it in one of the first things he pointed out to me was that there is a hesitation in the throttle so today he investigated further and found that the main fuel pump had died. So as of now he is replacing that for me as well as the file filter and the relays which were all original minus the filter. I’m hoping this fixes the problem.