Error 311 occurs when same SMS content is sent to the same number within 10 seconds. This is a security feature used to avoid multiple delivery.
The first SMS will be delivered and the second will be rejected. The balance will also be deducted only once.