Some excellent answers so far. But just to add to what has already been said, you can cancel your jobs, but you have to do it before the industry service modules have been offlined (i.e. before the structure hits its hull timer).
As others have said, using upwell structures provide some powerful bonuses, but those bonuses are balanced with increased risks. Thus, it is up to you to figure out how to mange those risks (i.e. use the structures of guys that are likely able to defend their ■■■■, and decide whether or not you should cancel your jobs before the armor timer (if armor is depleted, it will offline mods)).
Judging by the fact that you were able to do 10 runs of research at a time, it is likely that the blueprints in jeopardy are easily replaced and researched again. So, consider yourself lucky that you learned your lesson by paying a rather modest price.
And, if you’re lucky, the owners will successfully defend the hull timer and re-online the service mods. In fact, you can also try contacting them to see if they want help defending. Who knows, you might have some fun and/or make some new friends.