First and foremost, if you're looking for a engine change, it won't solve your problem (which lead to overhauls) if you dont maintain it well. Thus, try to start clean with the new engine and maintain her religously.

With the Corolla, a 4AGE or 4AGZE is the usual swap that is taken. AFAIK, it's pretty much straightforward but before you put it in, make sure you have all the needed parts and then also change and check some things like the water pump, belts, bearings, compression, gaskets, etc... so as to minimize repairs in the future (and these can be done while the engine is down).

Take your time to canvass on the engines, an installer, parts, etc...