If an app says "this number cannot be used", the reason is often that it is a VoIP number. Here is the difference.
VoIP numbers come from internet phone services. They are cheap and easy to create in bulk, so some apps refuse to send codes to them.
A non-VoIP number belongs to a mobile network and sits on a real SIM card. Apps treat it like any normal mobile number.
Every number range is registered to a carrier. Apps look up the carrier and the line type before sending a code.
For strict apps such as banks, payment services and big social networks, use non-VoIP. For most other sites, either type works.
Many numbers on this site come from mobile networks. Try a free verification number first. If the app still refuses it, a private rental lets you pick a number known to work.