I always get it after less than 2 mins of being chased by guard(s) or fighting back, no matter the place.
Could easily run away but I always get a random fps drop for like 2-3 seconds and boom, I'm dead and lose everything I stole, before I even get the chance to react.
PS: "Don't be detected by guards" isn't a way to solve my problem.