The exception occurres randomly, so I cannot provide a strategy that replicates it.
Looking at the stack trace from the exception it seems to be thrown in convertPipToCurrency.
I use convertPipToCurrency to calculate the order amount before placing an order.
Sometimes calling it seems to generate the exception, but most of the time it works.
Here is the part of my code that calls convertPipToCurrency:
double tickValue = context.getUtils().convertPipToCurrency(instrument, account.getAccountCurrency());
double lots = (account.getEquity() * riskPercentage/100) / ((stoploss/instrument.getPipValue()) * tickValue * LOT_SIZE);