Part of the B847 will close overnight in January and February while Network Rail repairs the viaduct that goes over it.