Indeed, working under cover is preferable for a rebuild. or at least have something above you to avoid trouble
Motor assembly is really not complicated, especially if you install the motor on a support provided for this purpose. This type of support is not expensive and this will allow you to easily turn the motor in all directions.
Finding a 164 engine must indeed be mission impossible. However, the 3.0 166 engines are fairly widespread and therefore easier to find. You can also use the components of a 3.2 engine, Stephan of squadra tuning pocède the ecu adjustment for this specificity, you will have a pleasant 265/270hp
You should know that the most important point of an engine is its balancing, so you just have to locate the location of each piston and connecting rod of the new engine and install them in the same place in block 164. Balancing the crankshaft and the flywheel and also essential, you will need to identify the position of the flywheel 166 relative to the crankshaft before uncoupling it from the crankshaft in order to put it back in the same position in block 164.
The flywheel of a 166 engine is bi-mass, so a clutch for 166 3.0 should be used.
The crankshafts of the new engines (166, gtv, gt, gta ect) installs without problem on the old block 164, you will simply have to recover the small pulley of the oil pump drive of the new engine and the install it on the crankshaft, the front seal of the crankshaft simply place on it, I attach some pictures of the assembly.
I hope this information will help you and do not hesitate if you have specific questions on engine rebuild.