A “drug courier” caused a crash after trying to escape police at high speed while driving his car, a court heard.