Box Collider Problem in Traffic System.

Hi I am new to Unity so maybe I am making a mistake. I am trying to make a traffic system where blocks with mesh renders have their box colliders turn on and off depending on timing. This system works 80 percent of time because sometimes the box colliders will not toggle off when needed. I added my code here.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TrafficSystem : MonoBehaviour
{
// Start is called before the first frame update
Collider m_Collider;

void Start()
{
   m_Collider = GetComponent<Collider>();  
StartCoroutine(Wait()); 

}

// Update is called once per frame
void Update()
{

 
    
 


}
IEnumerator Wait() {
    	while (1 ==1) { 
	m_Collider.enabled = !m_Collider.enabled;
	yield return new WaitForSeconds(30); 
	m_Collider.enabled = !m_Collider.enabled; 
	
	yield return new WaitForSeconds(67); 
	
	
	print("Next Cycle");
}


}	

}
Is there something I am missing or not doing right?

you cant turn on off like so

 IEnumerator Wait() {
 while (true) { 
 yield return new WaitForSeconds(30); 
 m_Collider.enabled = true;
 yield return new WaitForSeconds(67); 
 m_Collider.enabled = false; 
 print("Next Cycle");
 }
 }

if you want to disable more that one colllider you need put objects in array

So I figured out the real problem. It isn’t that the box colliders aren’t toggling on and off. The real problem is that sometimes after colliding, even when it is clear, the car turns off and will not move. I am using a standard asset car. If a car like that collides too hard does it stop or is there some setting to fix this. I am using the AI car asset in standard assets.
Thanks