the pilot is able to spam blocks to stop your boarding process (warheads/doors/...). Most likely this will also give you a ship HP drop but it's negligible.
perhaps when shipyards get introduced, building will only be possible near them. That should automatically fix this issue.