Smart home
Almost certainly nothing — your Wi-Fi is. Smart bulbs speak only the older, longer-reaching kind of Wi-Fi, the 2.4 GHz band. If your phone is connected to the faster 5 GHz band during setup (often the same network name with "5G" on the end, or no mark at all), the app and the bulb talk past each other and setup fails at the same place every time.
The fix: before you start, open your phone’s Wi-Fi settings and join the network without "5G" in its name, if you have two. Then run the setup standing in the same room as the router. Once the bulb is connected, you can carry it to its real lamp and it will remember everything.
Also make sure the bulb is actually in setup mode: most bulbs must be blinking to be found, and many reset by switching them off and on five times in a row until they blink. And type the Wi-Fi password slowly — it is the one password in the house where a single wrong letter looks exactly like "it just doesn’t work."