Is there any way to force the Mac to not to log me out after ten minutes?
Your power saver settings might be overriding this. Set them such that display is not turned off for a longer time. 

https://support.apple.com/en-us/HT202824

Additionally, you should check "Logout after n minutes" in Security and  Privacy-> General -> Advanced.