It's my mind playing tricks on me / My mind is playing tricks on me usually means you have made mistake about something you've seen or heard.
If you are alone at home at night and you hear strange noises, you may begin to believe that someone is trying to get into your house and do harm to you, even though no one is there. It's your mind playing tricks on you.