In a blow for the comic, Ricky Gervais has been warned his plan to rebuild his riverside home is at risk of exposing him and others to dangerous flooding.