More than 400 jobs have been put at risk following the announcement a plant in Fife is due to close in February.