Special cases include lā taʾmannā, the letter selection in yabsuṭu and basṭah, and the hamzah pronunciation at a-aʿjamiyyun.
Joining in forms such as biʾsa l-ismu can affect the sound.
Learn each site separately rather than applying one exceptional rule to all similar words.