Here's my interpretation of what went wrong:
Battle Locomotives adds technologies for breaking force 8 and 9, and your mod adds breaking force 8.
Because Battle_Locomotives is loaded before train_tech (alphabetical), breaking force 8 and 9 are created, but then this mod makes braking force 8 infinite.
The game doesn't like that, as now there's an infinite technology with another technology after it, and so they collide.
The solution would be to make a check for breaking force 8 and not add it (and perhaps also add breaking force 10) if it already exists.
You can do this using
if data.raw["technology"]["breaking-force-8"] then
...
end
as nil is treated as false.