Complexity Dependent Error Rates for Physics-informed Statistical Learning via the Small-ball Method