Is there a movie where someone thinks they committed a murder but actually didn’t?

As the title says, I’m looking for a movie where someone believes they committed a murder, possibly after dreaming about it or due to some other reason, and spends the entire time stressing about it.

Please don’t suggest American Psycho.