Multiple baby turtles (in my case 9-10) hatched together in a sand area generate a lot of lag in the world, making the player unable to break blocks or even open its inventory. I found this bug while trying to make a turtle farm. When the baby turtles hatched from the eggs, the world suddenly stopped working just in the area near the place where the turtle farm was. I don't know if this also happens with adult turtles because I haven't tried it yet.
Related issues
is duplicated by
Comments

Can you provide more details to help reproduce the bug?
If you're in the beta, it would be helpful to have a video showing any FPS drop that you might see.

affirmative, this error happens with adult turtles as well, personally I could not notice it with baby turtles since there is another error that causes them to disappear if they are hatched from the egg, but I can affirm that the more turtles generated, a delay is reproduced in the world as if , of delay in a multiplayer world in question, but not the error occurs in a world of its own

This issue is probably caused by minecraft:behavior.move_to_water constantly scanning blocks around the baby turtles or constantly trying to path through an obstruction. This behavior has a very high priority, but it only considers water in ocean biomes water as a valid target (MCPE-122278). So baby turtles that are hatched in an artificial enclosure get stuck looking for water or trying to path to ocean water that is not accessible.
I was not able to reproduce the lag in a flat world where ocean water is not available. This makes me think it may only be triggered where there is an ocean biome in range of the turtles but they cannot reach it due to obstructions. It would help if we could get a world save or a picture of a setup where this can be reproduced.

I'm trying to upload a video (already compressed) but it doesn't allow me to do it because I can't upload more than 10MB (video is 20.6MB)

Confirmed for PS4 1.16.210 I had a turtle scute farm with 8 plus adult turtles in middle of ocean, chests became unresponsive or slow to open and close, inventory took a while to open. After completely removing the turtles everything returned to normal. To reproduce all I can suggest is build a turtle scute farm or spawn multiple turtles (8 or more) and things will start to freeze or not work the way intended i.e chests, pistons, block breaking, combat and player inventory. I don't really see any drop in frames no stutter or anything when moving just certain elements of the game are slow to respond.
Edit: Also affects 1.16.220

Éric Manero Arenas: You may upload the video to a file sharing site like onedrive, or if you are on Windows 10 try recording with the game in windowed mode, the window size reduced, and sound recording off.

i decided to make a turtle farm and there is too much lag even the turtles are not 30. though there are 40-50 eggs. But, it is especially lagy when they are making eggs and mating. it is so much that i cant play. below 2 fps and freeze for 1-2 sec every other sec...
note : 1.17 bedrock. lenovo Y5070

i have 20 turtles, and when i'm near them game acts like i have high ping. even tough im playing singleplayer

I've confirmed that this is still a problem in 1.18.2.
These tests were performed with a new copy of Windows 10 Pro version 21H1 installed in a Hyper-V Virtual Machine with BDS 1.18.2.03 and TrapDoor BDS addin to profile server performance and display the TPS rates using the TrapDoor command "/prof". (It's highly recommended to use a VM to do this test because using the TrapDoor plugin triggers malware warnings).
I tested the turtle farm using the JCPlayz farm design. Blocking the path to the ocean and placing and array of 24 four egg spots and setting time via the BDS console to 21000-ish to keep it night so the eggs continue to hatch. When babies hatched they stayed stationary. As the clusters of eggs hatched, TPS dropped. After all were hatched I unblocked access to the ocean-based kill chamber and TPS immediately increased to normal.
On a second test, I allowed all baby turtles that are prevented from pathfinding to the ocean to grow up to adult. As they grew to adult TPS improved even though ocean access was still blocked.
So, I have confirmed that the issue applies only to farms that prevent baby turtles from pathfinding upon hatching. This would apply to initial setup of farms like the JCPlayz design only when the player is creating the initial breeding stock.
I have dozens of screen shots documenting the tests and can provide a configured Hyper-V VM (about 20 GB file) with the BDS and TrapDoor installation upon request by Mojang.
I can confirm that this is a bug. It happens to me too.