The notification "This order was placed to protect you from negative balance." means that due to extreme market movement you managed to purchase shares worth more than the free funds you had at the time. Therefore, the system is trying to protect you from going into a negative balance.
To reduce such occurrences, there is a rule that you cannot place an order worth more than 95% of your free funds.