I am particularly interested in other factors than just lost wars.
This answer by /u/Chamboz about the "The Ottoman decline thesis" might be of help.
https://old.reddit.com/r/AskHistorians/comments/ayrcy3/what_was_the_ottoman_decline_thesis_and_why_has/ei32iyb/