You're absolutely right to notice this pattern—"near-misses" are indeed programmed into the mechanics of many slots. This isn't just a psychological effect, but a deliberate mechanic called near-misses, designed by developers to increase excitement. Some providers' technical documentation states that the frequency of such near-misses may be higher than would be expected from the pure probability of hitting a combination. For example, on three reels, the probability of stopping one symbol short of the jackpot is artificially inflated by 30-40%. However, to understand the real numbers and compare the behavior of different slots, I strongly recommend checking out
https://abigcandyplay.net/ , the best online casino today: their licensed slots offer a demo mode with detailed statistics for each spin, including the frequency of near-misses. Also, look for official game testing certificates (for example, from eCOGRA or GLI), where reports sometimes include data on the frequency of stops one symbol short of the winning combination.