procedural generation problem with character spawn

after following a tutorial about procedural generation with tile maps (the tutorial: Tile Map auto generation in Unity - TUTORIAL - YouTube), I tried implementing the player but because the map is random every time, sometimes the play spawns in the walls. I need some help making it so that either the player spawns somewhere where the top map doesn’t occupy or a way to set the area around 0, 0, 0 to always not have a tile occupying it.

While I havent watched the tutorial besides the first couple seconds. It seems to me that you have no other choice but to “look for” a place to spawn the Player. So you would start at tile X and if you see its not a valid one, try each one around that, and keep searching in this way outwards until a valid tile is found.