Is it bad to listen to music while taking practice tests?

Is it okay to listen to music while doing prep and taking practice tests? I literally cannot sit and work on it in silence without losing focus.

It's fine to listen to music while studying, but I would recommend going without music when you actually take full practice tests. You won't be able to listen to music on the real SAT, so you should get used to focusing without it. If you don't replicate testing conditions when you take practice tests, your score predictions might not end up being accurate!