Would Yugoslavia been more stable if the majority of the Slavic population viewed themselves as Yugoslavs rather then Serbs, Croats and Bosnians .
https://en.wikipedia.org/wiki/Yugoslavs
https://en.wikipedia.org/wiki/Yugoslavs
Also non Slavic identities.It goes without saying that if the peoples of Yugoslavia saw themselves as belonging to a single people, the country would hold together. How could it not?
The problem is the question of how you create a single Yugoslav people. I'm not sure that's something easily achievable, given the antiquity of (particularly) Croat and Serb identities.
Also non Slavic identities.
The Albanians, Macedonians and Slovenians are a lost cause in building a Yugoslav identity.