1238. If the institute fails to perform his obligations or acts in a manner that endangers the rights of the substitute, the court may, depending on the gravity of the circumstances, deprive him of fruits and revenues, require him to restore the capital, declare his rights forfeited in favour of the substitute or appoint a sequestrator chosen preferably from the substitutes.