I was able to resolve the backtesting issue, and it didn't not require a source code change. I found this article on the mql4.com forum:
All Brokers MT4 platforms invalid prices - MQL4 forum
In it, there is a discussion about exporting the Metaquotes historical data to CSV files, deleting the old HST files, and then importing the CVS back into Metatrader. I tried this and now
ALL OrderSend error 4107 problems have disappeared! I am using VForce Like EA v2.0 on an FXDD platform, build 225. All historical data has been downloaded from the Metaquotes server.
I still see the occasional OrderSend error 130 issue showing up in the logs:
I believe this is a separate issue, but right now, I'm not sure what is causing it.