You must do whatever it takes to stop sinning. One option is temporary marriage. Other is to widen your search for permanent wife. You must not let the Shaitan win and should work hard to satisfy your needs in an Islamic acceptable way.
You need to make yourself busy and don’t go through boredom. Don’t watch or think of indecent things and try to busy yourself with halal means and recommended deeds