Hello there,
don't you think if the technology requires military science packs that it also should have those as prerequisite?
In siege-ballista_1.0.2\prototypes\technology-ballista-turret.lua change line 19 to
prerequisites = {"military", "steel-processing", "military-science-pack"},