In order to "solve" the divide by zero issue, there is only one good way.It is to make a model which does not feed 0 to a division block.
The workarounds are to:
1. Use a SWITCH block to pass EPS instead of 0 in the forward path to the DIVIDE block will also eliminate a divide by zero case.
2. Use a MATLAB Fcn block to implement
This is demonstrated in the attached model 'example_no_divide_by_zeroFcn'