Are Bounded Contracts Learnable and Approximately Optimal?