The E2 error code is caused by a problem with the electric wiring of your Sunbeam heated blanket. It could be due to a damaged wire or a malfunctioning component.