eat away at

[eat away at] {v. phr.} To psychologically gnaw at; to worrysomeone.

Fear of the comprehensive examination was eating away atSam.