Error Analysis of Three-Layer Neural Network Trained with PGD for Deep Ritz Method