Just split the country up into thirds (or halves if the Bosniac and Croat sides decided to cooperate),
There is nothing wrong with splitting up into smaller nations, especially since most of the former Yugoslavia has already done this multiple times.
Last time the former Yugoslavia did that, a war ensued. People like Helmut Kohl have somewhat to apologize for when it comes to that.