Watch this, first like 20 minutes, it is exactly about your issue.
Changing your mindset will be hard and it is more psychological issue than game play issue. But it can be done.
Try focusing on your own improvement and completely forgot the ranking. Dont even watch your SR. Take comp as quickplay. If you will not care about SR and rank, you will not be frustrated.