It is a common phenomenon with desvenlafaxine when we discontinue it, called discontinuation syndrome. It usually goes off in few days to a week, if it doesn't you need to consult a psychiatrist to start some other antidepressant at low dose preferably from SSRI class which doesn't carry risk of discontinuation syndrome (i.e Fluoxetine or vortioxetine) and you can discontinue same after using for 4-8 weeks.
Next Steps
wait for a week, if it doesn't help, consult a psychiatrist in-person.