“Maximum trigger depth exceeded” exception in Salesforce occurs mainly due to recursion.
Kindly implement a static variable in a class to avoid the trigger recursion.
Check the below site to avoid recursion in triggers
https://infallibletechie.com/2014/05/how-to-avoid-recursive-trigger-in.html