When you become obsessed with one thing, other things tend to fall by the wayside.
When you get obsessed with one thing, you end up losing something else.
「何かに固執していると他の何かを失ってしまうよ」= When you become obsessed with one thing, other things tend to fall by the wayside. / When you get obsessed with one thing, you end up losing something else.
ボキャブラリー
when = ~の時、~をすると
become obsessed = ~に固執する
one thing = 何か
other things = 他の事・物
tend to = ~の傾向がある
fall by the wayside = 途中で挫折する、~を失ってしまう
lose something = 失う