Man faints inside court after facing charges of theft