I am not certain if it originated from the name Bernat. There’s a book on origins of surnames of west Ukrainians surnames in Rusyn section which I am lazy to check now. The surname is wide-spread among Ukrainians, Belarusians, Poles. West Ukrainians have different origins including white Croats. It depends on the region of your ancestry in western Ukraine.