Four spherically symmetric but non‐asymptotically flat black hole solutions surrounded with spherical dark matter distribution perceived under the minimal length scale effect is derived via the generalized uncertainty principle. Here, the effect of this quantum correction, described by the parameter γ, is considered on a toy model galaxy with dark matter and the three well‐known dark matter distributions: the cold dark matter, scalar field dark matter, and the universal rotation curve. The aim is to find constraints to γ by applying these solutions to the known supermassive black holes: Sagittarius A (Sgr. A*) and Messier 87* (M87*), in conjunction with the available Event Horizon telescope. The effect of γ is then examined on the event horizon, photonsphere, and shadow radii, where unique deviations from the Schwarzschild case are observed. As for the shadow radii, bounds are obtained for the values of γ on each black hole solution at 3σ confidence level. The results revealed that under minimal length scale effect, black holes can give positive (larger shadow) and negative values (smaller shadow) of γ, which are supported indirectly by laboratory experiments and astrophysical or cosmological observations, respectively.