The person should try to relax for the night. In the morning with a fresh set of eyes they should seek professional help to deal with the anxiety created by scrupulosity and spiritual help to navigate moral questions. Props if this can be the same person.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.