Text this: Adaptive energy loss optimization in distributed networks using reinforcement learning-enhanced crow search algorithm