Hi Etisham.
1) We will need to see the script you used for the calculation that gave a runtime error. Otherwise it is nearly impossible to help.
2) A simple recipe for setting up ZnO layers separated by single MoS2 layers might be like this:
- create MoS2 monolayer, and a single unit of ZnO multi-layers.
- Merge the two configuration by drag-and-drop, and adjust the position of the MoS2 wrt. the ZnO.
- Repeat this process as many times as needed to set up multiple sequences of ZnO-MoS2 units.