A major frozen food manufacturer based in Scarborough has been fined £800,000 for safety failings after an employee nearly lost his arm.