Issue using WeMos with Servo library

Hello today, I am currently working on completing a project on a wemos D1 R1 using arduino with the libraries Servo and wemosinit. I have successfully run the robot multiple times until randomly we started getting an error with the servo library. I have included the code and the error to see if anyone may know how to fix what i am doing wrong.

#include <WemosInit.h>
#include <Servo.h>


#define motor1pin 2 
#define motor2pin 14 
#define echoPinc D3
#define trigPinc D4
#define echoPinl D6
#define trigPinl D7
#define echoPinr D2
#define trigPinr D8

Servo motor1; 
Servo motor2;

void setup()
{ 
Serial.begin(115200);
pinMode(D4,OUTPUT); 
pinMode(D3,INPUT);
pinMode(D6,OUTPUT); 
pinMode(D7,INPUT);
pinMode(D2,OUTPUT); 
pinMode(D8,INPUT);
motor1.attach(motor1pin);
motor2.attach(motor2pin);
delay(2500);
Serial.println(ultrasonicPing(D4,D3));
Serial.print(ultrasonicPing(D2,D8));
Serial.print("    ");
Serial.print(ultrasonicPing(D6,D7));
Serial.print("    ");

if(ultrasonicPing(D2,D8) < 500 && ultrasonicPing(D6,D7) < 3300){
  motor1.write(65);
  motor2.write(65);
  delay(300);
  motor1.write(180);
  motor2.write(0);
  delay(400);
  motor1.write(65);
  motor2.write(65);
  delay(800);
  motor1.write(90);
  motor2.write(90);
  delay(300);
  motor1.write(180);
  motor2.write(0);
  delay(300);
  motor1.write(65);
  motor2.write(65);
  delay(290);
  motor1.write(65);
  motor2.write(65);
  delay(400);
  motor1.write(90);
  motor2.write(90);
  delay(1000);

if(ultrasonicPing(D2,D8) < 500 && ultrasonicPing(D6,D7) > 3600){
  motor1.write(180);
  motor2.write(0);
  delay(220);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(65);
  motor2.write(65);
  delay(2300);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(0);
  motor2.write(180);
  delay(280);
  motor1.write(65);
  motor2.write(65);
  delay(1100);
  motor1.write(90);
  motor2.write(90);
  delay(1000);
}

if(ultrasonicPing(D2,D8) < 3300 && ultrasonicPing(D6,D7) < 500){
  motor1.write(65);
  motor2.write(65);
  delay(600);
  motor1.write(0);
  motor2.write(180);
  delay(600);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(65);
  motor2.write(65);
  delay(2100);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(0);
  motor2.write(180);
  delay(290);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(65);
  motor2.write(65);
  delay(1400);
  motor1.write(90);
  motor2.write(90);
  delay(1000);
}

if(ultrasonicPing(D2,D8) > 3600 && ultrasonicPing(D6,D7) < 500){
  motor1.write(0);
  motor2.write(180);
  delay(320);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(65);
  motor2.write(65);
  delay(300);
  motor1.write(90);
  motor2.write(90);
  delay(100);
  motor1.write(180);
  motor2.write(0);
  delay(280);
  motor1.write(65);
  motor2.write(65);
  delay(1000);
  motor1.write(90);
  motor2.write(90);
  delay(1000);
  }
}
}
Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "WeMos D1 R1, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

WARNING: library Servo claims to run on (avr, sam, samd, nrf52, stm32f4) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s).
In file included from C:\Users\major\Desktop\ugh\ugh.ino:3:0:

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\libraries\Servo\src/Servo.h:73:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."

 #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."

  ^

exit status 1
Error compiling for board WeMos D1 R1.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

From what I see there it seems almost glaringly obvious.

You need a servo library that supports the esp

Let google be your friend

The library i am using is that library. It is the same library being used by my entire class of 1000 without issue. As i said before, the library was working for hundreds of attempts and RANDOMLY stopped working without any reason.

I would guess that at some point you have allowed the Servo library to be updated and doing that has replaced the ESP8266 version with standard version (always a potential problem when there are two different libraries with exactly the same name).

Try reloading the servo library that you think you should be using.

Steve